package com.itheima.d09_api_strigbuilder;

import java.util.SortedMap;

/*
*
* */
public class Test {
    public static void main(String[] args) {
//        创建字符串对象
        StringBuilder sb = new StringBuilder();
        StringBuilder sb1 = new StringBuilder("hello");
//添加数据append方法
        sb.append(18);
        sb.append("张三");
        sb.append(true);
        sb.append(1.5);

        String data= sb.toString();

        System.out.println(data);

//2.3反转方法
        System.out.println(sb.reverse().toString());

        System.out.println(sb.length());
    }


}
